import Layout from '@/layout/BlankLayout'

const asyncRoutes = [
  {
    path: '/statistics',
    name: 'Statistics',
    component: Layout,
    meta: {
      title: '大屏展示',
      icon: 'nav-icon icon-statistics',
      resourceId: 'route:/web/device-management/', // todo
    },
    children: [
      {
        path: '/overview/statistics',
        name: 'View',
        component: () => import('@/views/overview/index.vue'),
        meta: {
          title: '大屏展示',
          resourceId: 'route:/web/device-management/', // todo
        },
      },
      {
        path: '/overview/screenmap',
        name: 'screenmap',
        component: () => import('@/views/overview/screenMap.vue'),
        meta: {
          title: '全屏展示',
          resourceId: 'route:/web/device-management/', // todo
        },
      },
    ],
  },
]

export default asyncRoutes
